.class public Lnbisdk/kr;
.super Ljava/lang/Object;


# instance fields
.field private dA:D

.field private dB:D

.field dC:I

.field dx:I

.field private dy:I

.field private dz:I

.field private pG:[I

.field pH:I

.field private pI:Lcom/nbi/map/data/Rectangle;

.field private pJ:I

.field private pK:I

.field private pL:I

.field private pM:I

.field private pN:Lcom/nbi/map/data/Rectangle;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x2

    new-array v0, v0, [I

    iput-object v0, p0, Lnbisdk/kr;->pG:[I

    return-void
.end method

.method private static a([IILcom/nbi/map/data/Rectangle;)V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-virtual {p2}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v0

    div-int/lit8 v0, v0, 0x2

    aget v1, p0, v2

    if-gez v1, :cond_0

    aget v1, p0, v2

    add-int/2addr v1, p1

    :goto_0
    aput v1, p0, v2

    aget v1, p0, v3

    sub-int/2addr v1, v0

    if-gez v1, :cond_2

    :goto_1
    aput v0, p0, v3

    return-void

    :cond_0
    aget v1, p0, v2

    if-lt v1, p1, :cond_1

    aget v1, p0, v2

    sub-int/2addr v1, p1

    goto :goto_0

    :cond_1
    aget v1, p0, v2

    goto :goto_0

    :cond_2
    aget v1, p0, v3

    add-int/2addr v1, v0

    if-lt v1, p1, :cond_3

    sub-int v0, p1, v0

    goto :goto_1

    :cond_3
    aget v0, p0, v3

    goto :goto_1
.end method


# virtual methods
.method public a(DD[I)V
    .locals 2

    invoke-virtual/range {p0 .. p5}, Lnbisdk/kr;->b(DD[I)V

    const/4 v0, 0x0

    aget v0, p5, v0

    const/4 v1, 0x1

    aget v1, p5, v1

    invoke-virtual {p0, v0, v1, p5}, Lnbisdk/kr;->b(II[I)V

    return-void
.end method

.method public a(IIDDDDF[D[D[I)V
    .locals 17

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    move-object v1, v0

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v1

    sub-int v1, v1, p1

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    move-object v2, v0

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v2

    sub-int v2, v2, p2

    const/4 v3, 0x1

    new-array v5, v3, [D

    const/4 v3, 0x2

    new-array v6, v3, [D

    invoke-static/range {p3 .. p4}, Ljava/lang/Math;->toRadians(D)D

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Math;->sin(D)D

    move-result-wide v3

    invoke-static/range {p7 .. p8}, Ljava/lang/Math;->toRadians(D)D

    move-result-wide v7

    invoke-static {v7, v8}, Ljava/lang/Math;->sin(D)D

    move-result-wide v7

    mul-int/lit16 v1, v1, 0x168

    int-to-double v9, v1

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kr;->dC:I

    move v1, v0

    int-to-double v11, v1

    sub-double v13, p5, p9

    invoke-static {v13, v14}, Ljava/lang/Math;->abs(D)D

    move-result-wide v13

    mul-double/2addr v11, v13

    div-double/2addr v9, v11

    double-to-int v1, v9

    const-wide v9, 0x402921fb54442d18L

    int-to-double v11, v2

    mul-double/2addr v9, v11

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kr;->dC:I

    move v2, v0

    int-to-double v11, v2

    const-wide/high16 v13, 0x3ff0

    add-double/2addr v13, v3

    const-wide/high16 v15, 0x3ff0

    sub-double/2addr v15, v7

    mul-double/2addr v13, v15

    const-wide/high16 v15, 0x3ff0

    sub-double v2, v15, v3

    const-wide/high16 v15, 0x3ff0

    add-double/2addr v7, v15

    mul-double/2addr v2, v7

    div-double v2, v13, v2

    invoke-static {v2, v3}, Lnbisdk/ah;->log(D)D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Math;->abs(D)D

    move-result-wide v2

    mul-double/2addr v2, v11

    div-double v2, v9, v2

    double-to-int v2, v2

    const/4 v3, 0x0

    int-to-long v7, v1

    invoke-static {v7, v8}, Lnbisdk/ah;->d(J)I

    move-result v1

    int-to-long v7, v2

    invoke-static {v7, v8}, Lnbisdk/ah;->d(J)I

    move-result v2

    invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I

    move-result v1

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    aput v1, p14, v3

    const/4 v1, 0x0

    const/4 v2, 0x0

    aget v2, p14, v2

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kr;->dy:I

    move v3, v0

    if-ge v2, v3, :cond_2

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kr;->dy:I

    move v2, v0

    :goto_0
    aput v2, p14, v1

    move-wide/from16 v1, p3

    move-wide/from16 v3, p5

    invoke-static/range {v1 .. v6}, Lnbisdk/kv;->a(DD[D[D)V

    const/4 v1, 0x0

    aget-wide v7, v5, v1

    const/4 v1, 0x0

    aget-wide v9, v6, v1

    move-wide/from16 v1, p7

    move-wide/from16 v3, p9

    invoke-static/range {v1 .. v6}, Lnbisdk/kv;->a(DD[D[D)V

    const/4 v1, 0x0

    aget-wide v1, v5, v1

    const/4 v3, 0x0

    aget-wide v3, v6, v3

    add-double/2addr v1, v7

    const-wide/high16 v7, 0x4000

    div-double/2addr v1, v7

    add-double/2addr v3, v9

    const-wide/high16 v7, 0x4000

    div-double/2addr v3, v7

    invoke-static/range {v1 .. v6}, Lnbisdk/kv;->b(DD[D[D)V

    const/4 v1, 0x0

    aget-wide v1, v5, v1

    const/4 v3, 0x0

    aget-wide v3, v6, v3

    if-eqz p12, :cond_0

    const/4 v5, 0x0

    aput-wide v1, p12, v5

    :cond_0
    if-eqz p13, :cond_1

    const/4 v1, 0x0

    aput-wide v3, p13, v1

    :cond_1
    return-void

    :cond_2
    const/4 v2, 0x0

    aget v2, p14, v2

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kr;->dz:I

    move v3, v0

    if-le v2, v3, :cond_3

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kr;->dz:I

    move v2, v0

    goto :goto_0

    :cond_3
    const/4 v2, 0x0

    aget v2, p14, v2

    goto :goto_0
.end method

.method public a(II[D)V
    .locals 3

    const/4 v2, 0x1

    const/4 v1, 0x0

    const/4 v0, 0x2

    new-array v0, v0, [I

    aput v1, v0, v2

    aput v1, v0, v1

    invoke-virtual {p0, p1, p2, v0}, Lnbisdk/kr;->a(II[I)V

    aget v1, v0, v1

    aget v0, v0, v2

    invoke-virtual {p0, v1, v0, p3}, Lnbisdk/kr;->b(II[D)V

    return-void
.end method

.method public a(II[I)V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    iget-object v0, p0, Lnbisdk/kr;->pG:[I

    aget v0, v0, v2

    iget-object v1, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v1

    sub-int/2addr v0, v1

    iget-object v1, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    sub-int/2addr v0, v1

    add-int/2addr v0, p1

    aput v0, p3, v2

    iget-object v0, p0, Lnbisdk/kr;->pG:[I

    aget v0, v0, v3

    iget-object v1, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v1

    sub-int/2addr v0, v1

    iget-object v1, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    sub-int/2addr v0, v1

    add-int/2addr v0, p2

    aput v0, p3, v3

    return-void
.end method

.method public a(DD)Z
    .locals 6

    const/4 v0, 0x2

    new-array v5, v0, [I

    move-object v0, p0

    move-wide v1, p1

    move-wide v3, p3

    invoke-virtual/range {v0 .. v5}, Lnbisdk/kr;->a(DD[I)V

    const/4 v0, 0x0

    aget v0, v5, v0

    const/4 v1, 0x1

    aget v1, v5, v1

    invoke-virtual {p0, v0, v1}, Lnbisdk/kr;->c(II)Z

    move-result v0

    return v0
.end method

.method public b(DDDD)D
    .locals 12

    const/4 v0, 0x2

    new-array v5, v0, [I

    const/4 v0, 0x2

    new-array v11, v0, [I

    move-object v0, p0

    move-wide v1, p1

    move-wide v3, p3

    invoke-virtual/range {v0 .. v5}, Lnbisdk/kr;->b(DD[I)V

    move-object v6, p0

    move-wide/from16 v7, p5

    move-wide/from16 v9, p7

    invoke-virtual/range {v6 .. v11}, Lnbisdk/kr;->b(DD[I)V

    const/4 v0, 0x0

    aget v0, v11, v0

    const/4 v1, 0x0

    aget v1, v5, v1

    sub-int/2addr v0, v1

    const/4 v1, 0x1

    aget v1, v11, v1

    const/4 v2, 0x1

    aget v2, v5, v2

    sub-int/2addr v1, v2

    mul-int/2addr v0, v0

    mul-int/2addr v1, v1

    add-int/2addr v0, v1

    int-to-double v0, v0

    invoke-static {v0, v1}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v0

    return-wide v0
.end method

.method public b(II)I
    .locals 1

    shl-int v0, p2, p1

    return v0
.end method

.method public b(DD[I)V
    .locals 14

    iget v3, p0, Lnbisdk/kr;->dx:I

    iget v4, p0, Lnbisdk/kr;->dC:I

    invoke-virtual {p0, v3, v4}, Lnbisdk/kr;->b(II)I

    move-result v3

    const-wide v4, 0x4066800000000000L

    add-double v4, v4, p3

    const-wide v6, 0x4076800000000000L

    div-double/2addr v4, v6

    invoke-static/range {p1 .. p2}, Ljava/lang/Math;->toRadians(D)D

    move-result-wide v6

    invoke-static {v6, v7}, Ljava/lang/Math;->sin(D)D

    move-result-wide v6

    const-wide/high16 v8, 0x3fe0

    const-wide/high16 v10, 0x3ff0

    add-double/2addr v10, v6

    const-wide/high16 v12, 0x3ff0

    sub-double v6, v12, v6

    div-double v6, v10, v6

    invoke-static {v6, v7}, Lnbisdk/ah;->log(D)D

    move-result-wide v6

    const-wide v10, 0x402921fb54442d18L

    div-double/2addr v6, v10

    sub-double v6, v8, v6

    const/4 v8, 0x0

    int-to-double v9, v3

    mul-double/2addr v4, v9

    const-wide/high16 v9, 0x3fe0

    add-double/2addr v4, v9

    double-to-int v4, v4

    aput v4, p5, v8

    const/4 v4, 0x1

    int-to-double v8, v3

    mul-double v5, v6, v8

    const-wide/high16 v7, 0x3fe0

    add-double/2addr v5, v7

    double-to-int v5, v5

    aput v5, p5, v4

    iget-object v4, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    move-object/from16 v0, p5

    move v1, v3

    move-object v2, v4

    invoke-static {v0, v1, v2}, Lnbisdk/kr;->a([IILcom/nbi/map/data/Rectangle;)V

    return-void
.end method

.method public b(II[D)V
    .locals 10

    const-wide v6, 0x417312d000000000L

    const-wide v8, 0x415848fd6e50b45cL

    iget v0, p0, Lnbisdk/kr;->dx:I

    iget v1, p0, Lnbisdk/kr;->dC:I

    invoke-virtual {p0, v0, v1}, Lnbisdk/kr;->b(II)I

    move-result v0

    const-wide v1, 0x418312d000000000L

    int-to-double v3, v0

    div-double v0, v1, v3

    int-to-double v2, p1

    mul-double/2addr v2, v0

    sub-double/2addr v2, v6

    int-to-double v4, p2

    mul-double/2addr v0, v4

    sub-double v0, v6, v0

    const-wide v4, 0x3ff921fb54442d18L

    const-wide/high16 v6, 0x4000

    neg-double v0, v0

    div-double/2addr v0, v8

    invoke-static {v0, v1}, Lnbisdk/ah;->exp(D)D

    move-result-wide v0

    invoke-static {v0, v1}, Lnbisdk/ah;->atan(D)D

    move-result-wide v0

    mul-double/2addr v0, v6

    sub-double v0, v4, v0

    div-double/2addr v2, v8

    const/4 v4, 0x0

    invoke-static {v0, v1}, Lnbisdk/kv;->l(D)D

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Math;->toDegrees(D)D

    move-result-wide v0

    aput-wide v0, p3, v4

    const/4 v0, 0x1

    invoke-static {v2, v3}, Lnbisdk/kv;->m(D)D

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Math;->toDegrees(D)D

    move-result-wide v1

    aput-wide v1, p3, v0

    return-void
.end method

.method public b(II[I)V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    iget-object v0, p0, Lnbisdk/kr;->pG:[I

    aget v0, v0, v2

    sub-int v0, p1, v0

    iget-object v1, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v1

    add-int/2addr v0, v1

    iget-object v1, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    add-int/2addr v0, v1

    aput v0, p3, v2

    iget-object v0, p0, Lnbisdk/kr;->pG:[I

    aget v0, v0, v3

    sub-int v0, p2, v0

    iget-object v1, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v1

    add-int/2addr v0, v1

    iget-object v1, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    add-int/2addr v0, v1

    aput v0, p3, v3

    return-void
.end method

.method public b(IIII)Z
    .locals 1

    iget-object v0, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/nbi/map/data/Rectangle;->intersects(IIII)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/nbi/map/data/Rectangle;->contains(IIII)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public c(DD[I)V
    .locals 2

    invoke-virtual/range {p0 .. p5}, Lnbisdk/kr;->b(DD[I)V

    const/4 v0, 0x0

    aget v0, p5, v0

    const/4 v1, 0x1

    aget v1, p5, v1

    invoke-virtual {p0, v0, v1, p5}, Lnbisdk/kr;->c(II[I)V

    return-void
.end method

.method public c(II[I)V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    iget-object v0, p0, Lnbisdk/kr;->pG:[I

    aget v0, v0, v2

    sub-int v0, p1, v0

    iget v1, p0, Lnbisdk/kr;->pL:I

    add-int/2addr v0, v1

    aput v0, p3, v2

    iget-object v0, p0, Lnbisdk/kr;->pG:[I

    aget v0, v0, v3

    sub-int v0, p2, v0

    iget v1, p0, Lnbisdk/kr;->pM:I

    add-int/2addr v0, v1

    aput v0, p3, v3

    return-void
.end method

.method public final c(Lcom/nbi/map/data/Rectangle;)V
    .locals 8

    const/4 v6, 0x0

    invoke-virtual {p0}, Lnbisdk/kr;->fG()I

    move-result v0

    invoke-virtual {p0}, Lnbisdk/kr;->fH()I

    move-result v1

    iget-object v2, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v2

    iget-object v3, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v3}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v3

    iget-object v4, p0, Lnbisdk/kr;->pN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v4, v0, v1, v2, v3}, Lcom/nbi/map/data/Rectangle;->intersects(IIII)Z

    move-result v4

    if-nez v4, :cond_0

    invoke-virtual {p1, v6, v6, v6, v6}, Lcom/nbi/map/data/Rectangle;->set(IIII)V

    :goto_0
    return-void

    :cond_0
    iget-object v4, p0, Lnbisdk/kr;->pN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v4}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v4

    if-gez v0, :cond_1

    add-int/2addr v0, v2

    move v2, v6

    :goto_1
    if-gez v1, :cond_2

    add-int/2addr v1, v3

    move v3, v6

    :goto_2
    invoke-virtual {p1, v2}, Lcom/nbi/map/data/Rectangle;->setLeft(I)V

    invoke-virtual {p1, v3}, Lcom/nbi/map/data/Rectangle;->setTop(I)V

    invoke-virtual {p1, v0}, Lcom/nbi/map/data/Rectangle;->setWidth(I)V

    invoke-virtual {p1, v1}, Lcom/nbi/map/data/Rectangle;->setHeight(I)V

    goto :goto_0

    :cond_1
    add-int v5, v0, v2

    if-le v5, v4, :cond_4

    sub-int v2, v4, v0

    move v7, v2

    move v2, v0

    move v0, v7

    goto :goto_1

    :cond_2
    add-int v5, v1, v3

    if-le v5, v4, :cond_3

    sub-int v3, v4, v1

    move v7, v3

    move v3, v1

    move v1, v7

    goto :goto_2

    :cond_3
    move v7, v3

    move v3, v1

    move v1, v7

    goto :goto_2

    :cond_4
    move v7, v2

    move v2, v0

    move v0, v7

    goto :goto_1
.end method

.method public c(Lnbisdk/lf;Lnbisdk/ij;)V
    .locals 9

    const/4 v6, 0x2

    const/4 v8, 0x0

    const/4 v7, 0x1

    invoke-virtual {p1}, Lnbisdk/lf;->getZoomLevel()I

    move-result v0

    iput v0, p0, Lnbisdk/kr;->dx:I

    invoke-virtual {p1}, Lnbisdk/lf;->bY()I

    move-result v0

    iput v0, p0, Lnbisdk/kr;->dy:I

    invoke-virtual {p1}, Lnbisdk/lf;->bZ()I

    move-result v0

    iput v0, p0, Lnbisdk/kr;->dz:I

    invoke-virtual {p1}, Lnbisdk/lf;->cc()I

    move-result v0

    iput v0, p0, Lnbisdk/kr;->dC:I

    invoke-virtual {p1}, Lnbisdk/lf;->ca()D

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/kr;->dA:D

    invoke-virtual {p1}, Lnbisdk/lf;->cb()D

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/kr;->dB:D

    invoke-virtual {p1}, Lnbisdk/lf;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {p1}, Lnbisdk/lf;->am()Lcom/nbi/map/data/Rectangle;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/kr;->pN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {p0}, Lnbisdk/kr;->fG()I

    move-result v0

    if-gez v0, :cond_2

    move v0, v6

    :goto_0
    iput v0, p0, Lnbisdk/kr;->pH:I

    iget-wide v1, p0, Lnbisdk/kr;->dA:D

    iget-wide v3, p0, Lnbisdk/kr;->dB:D

    new-array v5, v6, [I

    move-object v0, p0

    invoke-virtual/range {v0 .. v5}, Lnbisdk/kr;->b(DD[I)V

    iget-object v0, p0, Lnbisdk/kr;->pG:[I

    aget v1, v5, v8

    aput v1, v0, v8

    iget-object v0, p0, Lnbisdk/kr;->pG:[I

    aget v1, v5, v7

    aput v1, v0, v7

    iget-object v0, p0, Lnbisdk/kr;->pG:[I

    iget v1, p0, Lnbisdk/kr;->dx:I

    iget v2, p0, Lnbisdk/kr;->dC:I

    invoke-virtual {p0, v1, v2}, Lnbisdk/kr;->b(II)I

    move-result v1

    iget-object v2, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-static {v0, v1, v2}, Lnbisdk/kr;->a([IILcom/nbi/map/data/Rectangle;)V

    iget-object v0, p0, Lnbisdk/kr;->pG:[I

    aget v0, v0, v8

    aget v1, v5, v8

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lnbisdk/kr;->pG:[I

    aget v0, v0, v7

    aget v1, v5, v7

    if-eq v0, v1, :cond_1

    :cond_0
    new-array v0, v6, [D

    iget-object v1, p0, Lnbisdk/kr;->pG:[I

    aget v1, v1, v8

    iget-object v2, p0, Lnbisdk/kr;->pG:[I

    aget v2, v2, v7

    invoke-virtual {p0, v1, v2, v0}, Lnbisdk/kr;->b(II[D)V

    aget-wide v1, v0, v8

    iput-wide v1, p0, Lnbisdk/kr;->dA:D

    aget-wide v0, v0, v7

    iput-wide v0, p0, Lnbisdk/kr;->dB:D

    :cond_1
    new-array v0, v6, [I

    iget-object v1, p0, Lnbisdk/kr;->pG:[I

    aget v1, v1, v8

    iget v2, p0, Lnbisdk/kr;->dC:I

    div-int/2addr v1, v2

    iget-object v2, p0, Lnbisdk/kr;->pG:[I

    aget v2, v2, v7

    iget v3, p0, Lnbisdk/kr;->dC:I

    div-int/2addr v2, v3

    iget v3, p0, Lnbisdk/kr;->dC:I

    mul-int/2addr v3, v1

    aput v3, v0, v8

    iget v3, p0, Lnbisdk/kr;->dC:I

    mul-int/2addr v3, v2

    aput v3, v0, v7

    iget-object v3, p0, Lnbisdk/kr;->pG:[I

    aget v3, v3, v8

    aget v4, v0, v8

    sub-int/2addr v3, v4

    aput v3, v0, v8

    iget-object v3, p0, Lnbisdk/kr;->pG:[I

    aget v3, v3, v7

    aget v4, v0, v7

    sub-int/2addr v3, v4

    aput v3, v0, v7

    iget v3, p0, Lnbisdk/kr;->dx:I

    shl-int v3, v7, v3

    iget-object v4, p0, Lnbisdk/kr;->pN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v4}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v4

    iget-object v5, p0, Lnbisdk/kr;->pN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v5}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v5

    iget v6, p0, Lnbisdk/kr;->dC:I

    div-int/2addr v4, v6

    iget v6, p0, Lnbisdk/kr;->dC:I

    div-int/2addr v5, v6

    rem-int/lit8 v6, v4, 0x2

    if-nez v6, :cond_4

    div-int/lit8 v4, v4, 0x2

    :goto_1
    rem-int/lit8 v6, v5, 0x2

    if-nez v6, :cond_5

    div-int/lit8 v6, v5, 0x2

    :goto_2
    sub-int/2addr v1, v4

    add-int/lit8 v1, v1, 0x1

    iput v1, p0, Lnbisdk/kr;->pJ:I

    sub-int v1, v2, v6

    add-int/lit8 v1, v1, 0x1

    iput v1, p0, Lnbisdk/kr;->pK:I

    iget v1, p0, Lnbisdk/kr;->pJ:I

    if-gez v1, :cond_6

    iget v1, p0, Lnbisdk/kr;->pJ:I

    add-int/2addr v1, v3

    :goto_3
    iput v1, p0, Lnbisdk/kr;->pJ:I

    sub-int v1, v3, v5

    iget v2, p0, Lnbisdk/kr;->pK:I

    if-gez v2, :cond_8

    iget v1, p0, Lnbisdk/kr;->pK:I

    iput v8, p0, Lnbisdk/kr;->pK:I

    :goto_4
    sub-int v2, v4, v7

    iget v3, p0, Lnbisdk/kr;->dC:I

    mul-int/2addr v2, v3

    aget v3, v0, v8

    add-int/2addr v2, v3

    iput v2, p0, Lnbisdk/kr;->pL:I

    sub-int v2, v6, v7

    add-int/2addr v1, v2

    iget v2, p0, Lnbisdk/kr;->dC:I

    mul-int/2addr v1, v2

    aget v0, v0, v7

    add-int/2addr v0, v1

    iput v0, p0, Lnbisdk/kr;->pM:I

    return-void

    :cond_2
    iget-object v1, p0, Lnbisdk/kr;->pN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v1

    iget-object v2, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v2

    sub-int/2addr v1, v2

    if-le v0, v1, :cond_3

    move v0, v7

    goto/16 :goto_0

    :cond_3
    move v0, v8

    goto/16 :goto_0

    :cond_4
    div-int/lit8 v4, v4, 0x2

    add-int/lit8 v4, v4, 0x1

    goto :goto_1

    :cond_5
    div-int/lit8 v6, v5, 0x2

    add-int/lit8 v6, v6, 0x1

    goto :goto_2

    :cond_6
    iget v1, p0, Lnbisdk/kr;->pJ:I

    if-lt v1, v3, :cond_7

    iget v1, p0, Lnbisdk/kr;->pJ:I

    sub-int/2addr v1, v3

    goto :goto_3

    :cond_7
    iget v1, p0, Lnbisdk/kr;->pJ:I

    goto :goto_3

    :cond_8
    iget v2, p0, Lnbisdk/kr;->pK:I

    if-le v2, v1, :cond_9

    iget v2, p0, Lnbisdk/kr;->pK:I

    sub-int/2addr v2, v1

    iput v1, p0, Lnbisdk/kr;->pK:I

    move v1, v2

    goto :goto_4

    :cond_9
    move v1, v8

    goto :goto_4
.end method

.method public c(II)Z
    .locals 1

    iget-object v0, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v0, p1, p2}, Lcom/nbi/map/data/Rectangle;->isPointInRectangle(II)Z

    move-result v0

    return v0
.end method

.method public ca()D
    .locals 2

    iget-wide v0, p0, Lnbisdk/kr;->dA:D

    return-wide v0
.end method

.method public cb()D
    .locals 2

    iget-wide v0, p0, Lnbisdk/kr;->dB:D

    return-wide v0
.end method

.method public d(II)V
    .locals 7

    const/4 v6, 0x0

    const/4 v5, 0x1

    const/4 v0, 0x2

    new-array v0, v0, [D

    iget-object v1, p0, Lnbisdk/kr;->pG:[I

    aget v1, v1, v5

    iget-object v2, p0, Lnbisdk/kr;->pG:[I

    aget v3, v2, v6

    add-int/2addr v3, p1

    aput v3, v2, v6

    iget-object v2, p0, Lnbisdk/kr;->pG:[I

    aget v3, v2, v5

    add-int/2addr v3, p2

    aput v3, v2, v5

    iget-object v2, p0, Lnbisdk/kr;->pG:[I

    iget v3, p0, Lnbisdk/kr;->dx:I

    iget v4, p0, Lnbisdk/kr;->dC:I

    invoke-virtual {p0, v3, v4}, Lnbisdk/kr;->b(II)I

    move-result v3

    iget-object v4, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-static {v2, v3, v4}, Lnbisdk/kr;->a([IILcom/nbi/map/data/Rectangle;)V

    iget-object v2, p0, Lnbisdk/kr;->pG:[I

    aget v2, v2, v6

    iget-object v3, p0, Lnbisdk/kr;->pG:[I

    aget v3, v3, v5

    invoke-virtual {p0, v2, v3, v0}, Lnbisdk/kr;->b(II[D)V

    aget-wide v2, v0, v6

    iput-wide v2, p0, Lnbisdk/kr;->dA:D

    aget-wide v2, v0, v5

    iput-wide v2, p0, Lnbisdk/kr;->dB:D

    iget v0, p0, Lnbisdk/kr;->pM:I

    iget-object v2, p0, Lnbisdk/kr;->pG:[I

    aget v2, v2, v5

    sub-int v1, v2, v1

    add-int/2addr v0, v1

    iput v0, p0, Lnbisdk/kr;->pM:I

    iget v0, p0, Lnbisdk/kr;->pL:I

    add-int/2addr v0, p1

    iput v0, p0, Lnbisdk/kr;->pL:I

    return-void
.end method

.method public fC()I
    .locals 1

    iget v0, p0, Lnbisdk/kr;->pJ:I

    return v0
.end method

.method public fD()I
    .locals 1

    iget v0, p0, Lnbisdk/kr;->pK:I

    return v0
.end method

.method public fE()I
    .locals 1

    iget v0, p0, Lnbisdk/kr;->pL:I

    return v0
.end method

.method public fF()I
    .locals 1

    iget v0, p0, Lnbisdk/kr;->pM:I

    return v0
.end method

.method public fG()I
    .locals 2

    iget v0, p0, Lnbisdk/kr;->pL:I

    iget-object v1, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    sub-int/2addr v0, v1

    return v0
.end method

.method public fH()I
    .locals 2

    iget v0, p0, Lnbisdk/kr;->pM:I

    iget-object v1, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v1

    div-int/lit8 v1, v1, 0x2

    sub-int/2addr v0, v1

    return v0
.end method

.method public fI()Z
    .locals 5

    const/4 v4, 0x1

    iget v0, p0, Lnbisdk/kr;->dx:I

    shl-int v0, v4, v0

    iget v1, p0, Lnbisdk/kr;->dC:I

    mul-int/2addr v0, v1

    iget-object v1, p0, Lnbisdk/kr;->pN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v1}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v1

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v1

    iget-object v2, p0, Lnbisdk/kr;->pN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v2

    invoke-static {v0, v2}, Ljava/lang/Math;->min(II)I

    move-result v0

    iget v2, p0, Lnbisdk/kr;->pL:I

    iget-object v3, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v3}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v3

    div-int/lit8 v3, v3, 0x2

    sub-int/2addr v2, v3

    if-ltz v2, :cond_0

    iget v2, p0, Lnbisdk/kr;->pL:I

    iget-object v3, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v3}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v3

    div-int/lit8 v3, v3, 0x2

    add-int/2addr v2, v3

    if-gt v2, v1, :cond_0

    iget v1, p0, Lnbisdk/kr;->pM:I

    iget-object v2, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v2

    div-int/lit8 v2, v2, 0x2

    sub-int/2addr v1, v2

    if-ltz v1, :cond_0

    iget v1, p0, Lnbisdk/kr;->pM:I

    iget-object v2, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v2}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v2

    div-int/lit8 v2, v2, 0x2

    add-int/2addr v1, v2

    if-le v1, v0, :cond_2

    :cond_0
    move v0, v4

    :goto_0
    if-eqz v0, :cond_1

    const-string v1, "MapTransform::isCurrentScreenOutsideOffScreenBounds"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "("

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, p0, Lnbisdk/kr;->pL:I

    invoke-static {v3}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, p0, Lnbisdk/kr;->pM:I

    invoke-static {v3}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ","

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v3}, Lcom/nbi/map/data/Rectangle;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lnbisdk/kr;->pN:Lcom/nbi/map/data/Rectangle;

    invoke-virtual {v3}, Lcom/nbi/map/data/Rectangle;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ")"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lnbisdk/x$1;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_1
    return v0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public setCenter(DD)V
    .locals 9

    const/4 v8, 0x2

    const/4 v7, 0x1

    const/4 v6, 0x0

    new-array v5, v8, [I

    move-object v0, p0

    move-wide v1, p1

    move-wide v3, p3

    invoke-virtual/range {v0 .. v5}, Lnbisdk/kr;->b(DD[I)V

    new-array v0, v8, [I

    aget v1, v5, v6

    aput v1, v0, v6

    aget v1, v5, v7

    aput v1, v0, v7

    iget v1, p0, Lnbisdk/kr;->dx:I

    iget v2, p0, Lnbisdk/kr;->dC:I

    invoke-virtual {p0, v1, v2}, Lnbisdk/kr;->b(II)I

    move-result v1

    iget-object v2, p0, Lnbisdk/kr;->pI:Lcom/nbi/map/data/Rectangle;

    invoke-static {v0, v1, v2}, Lnbisdk/kr;->a([IILcom/nbi/map/data/Rectangle;)V

    new-array v1, v8, [I

    aget v2, v0, v6

    aget v3, v0, v7

    invoke-virtual {p0, v2, v3, v1}, Lnbisdk/kr;->c(II[I)V

    aget v2, v1, v6

    iput v2, p0, Lnbisdk/kr;->pL:I

    aget v1, v1, v7

    iput v1, p0, Lnbisdk/kr;->pM:I

    iput-object v0, p0, Lnbisdk/kr;->pG:[I

    aget v1, v0, v7

    aget v2, v5, v7

    if-ne v1, v2, :cond_0

    aget v0, v0, v6

    aget v1, v5, v6

    if-eq v0, v1, :cond_1

    :cond_0
    new-array v0, v8, [D

    iget-object v1, p0, Lnbisdk/kr;->pG:[I

    aget v1, v1, v6

    iget-object v2, p0, Lnbisdk/kr;->pG:[I

    aget v2, v2, v7

    invoke-virtual {p0, v1, v2, v0}, Lnbisdk/kr;->b(II[D)V

    aget-wide v1, v0, v6

    iput-wide v1, p0, Lnbisdk/kr;->dA:D

    aget-wide v0, v0, v7

    iput-wide v0, p0, Lnbisdk/kr;->dB:D

    :goto_0
    return-void

    :cond_1
    iput-wide p1, p0, Lnbisdk/kr;->dA:D

    iput-wide p3, p0, Lnbisdk/kr;->dB:D

    goto :goto_0
.end method
